{extends file="./main.tpl"}

{block name="head"}
  <script>
    $(document).ready(function(){
      $('#item').focus();
    });
  </script>
{/block}
{block name=body}
<br/><br/><br/><br/><br/>
<form name="companyForm" action="itemCreate.php" method="post" enctype="multipart/form-data">
  <table align="center" border="1" cellpadding="2" cellspacing="2">
    <tr>
      <th align="center" class="table1" colspan="3"><b>Item Create</b></th>
    </tr>
    <tr id="one" class="one">
      <th>Item : </th>
      <td>
        <select name="itemSelect" id="item">
          <option>Select</option>
          {html_options values=$items.itemId output=$items.itemName}
        </select>
      </td>
      <td>
        <input type="text" name="newItem">
      </td>
    </tr>
    <tr>
      <th>Size : </th>
      <td>
        <select name="sizeSelect">
          <option>Select</option>
          {html_options values=$size.sizeId output=$size.sizeName}
        </select>
      </td>
      <td>
        <input type="text" name="newSize">
      </td>
    </tr>
    <tr>
      <th>Company : </th>
      <td>
        <select name="companySelect">
          <option>Select</option>
          {html_options values=$companys.companyId output=$companys.companyName}
        </select>
      </td>
      <td>
        <input type="text" name="newCompany">
      </td>
    </tr>
    <tr>
      <th>Quality : </th>
      <td>
        <select name="qualitySelect">
          <option>Select</option>
          {html_options values=$quality.qualityId output=$quality.qualityName}
        </select>
      </td>
      <td>
        <input type="text" name="newQuality">
      </td>
    </tr>
    <tr>
      <th>Color Name : </th>
      <td>
        <select name="colorSelect">
          <option>Select</option>
          {html_options values=$color.colorId output=$color.colorName}
        </select>
      </td>
      <td><input type="text" name="newColor"></td>
    </tr>
    <tr>
      <th>Design Name :</th>
      <td>
        <select name="designSelect">
          <option>Select</option>
          {html_options values=$design.designId output=$design.designName}
        </select>
      </td>
      <td><input type="text" name="designName"></td>
    </tr>
    <tr>
      <th> Sub Item Image : </th>
      <td colspan="2"><input type="file" name="subItemImage"></td>
    </tr>
    <tr align="center" align="center">
      <td colspan="3"><input type="submit" name="submitBtn" value="Submit" /></td>
    </tr>
  </table>
</form>
{/block}